package com.bookStore.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable {

	// Fields

	private Integer id;
	private Users users;
	private Timestamp orderDate;
	private Double totalPrice;
	private Set orderBooks = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(Integer id, Users users, Timestamp orderDate,
			Double totalPrice) {
		this.id = id;
		this.users = users;
		this.orderDate = orderDate;
		this.totalPrice = totalPrice;
	}

	/** full constructor */
	public Orders(Integer id, Users users, Timestamp orderDate,
			Double totalPrice, Set orderBooks) {
		this.id = id;
		this.users = users;
		this.orderDate = orderDate;
		this.totalPrice = totalPrice;
		this.orderBooks = orderBooks;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Timestamp getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(Timestamp orderDate) {
		this.orderDate = orderDate;
	}

	public Double getTotalPrice() {
		return this.totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Set getOrderBooks() {
		return this.orderBooks;
	}

	public void setOrderBooks(Set orderBooks) {
		this.orderBooks = orderBooks;
	}

}